package de.tabuma.soap.entity.xsd;

import javax.xml.namespace.QName;
import java.util.*;
import java.io.*;
import javax.jdo.annotations.*;

import de.tabuma.soap.annotation.*;

/**
 * This class represents an element of an wsdl document called &quot;attribute&quot;.
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/12/30 02:57:12 $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@SoapClassDefinition(@SoapClassMapping(mappingString="attribute",mappingType=SoapClassMapping.MappingType.XSD))
public class XsAttribute implements Serializable {

    public XsAttribute() {
        
        //this.otherAttributes = new HashMap<QName,String>();
        this.xsAnnotationId = new Long(0);
        this.xsSimpleTypeId = new Long(0);
    }

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id1;
    public Long getId1() {
        return id1;
    }

    @Persistent
    @SoapAttribute
    protected String name;
    public String getName() {
        return name;
    }
    public void setName(String value) {
        this.name = value;
    }

    @Persistent
    @SoapAttribute
    protected String id;
    public String getId() {
        return id;
    }
    public void setId(String value) {
        this.id = value;
    }

    @Persistent
    @SoapAttribute
    protected String ref;
    public String getRef() {
        return ref;
    }
    public void setRef(String value) {
        this.ref = value;
    }

    @Persistent
    @SoapAttribute
    protected String type;
    public String getType() {
        return type;
    }
    public void setType(String value) {
        this.type = value;
    }

    @Persistent
    @SoapAttribute
    protected String use;
    public String getUse() {
        return use;
    }
    public void setUse(String value) {
        this.use = value;
    }

    @Persistent
    @SoapAttribute(fieldName="default")
    protected String _default;
    public String getDefault() {
        return _default;
    }
    public void setDefault(String value) {
        this._default = value;
    }

    @Persistent
    @SoapAttribute
    protected String fixed;
    public String getFixed() {
        return fixed;
    }
    public void setFixed(String value) {
        this.fixed = value;
    }

    @Persistent
    @SoapAttribute
    protected String form;
    public String getForm() {
        return form;
    }
    public void setForm(String value) {
        this.form = value;
    }

    /************************************************************************************
        @Persistent
        @SoapAttribute
        protected Map<QName,String> otherAttributes;
        public void setOtherAttributes(Map<QName, String> otherAttributes) {
            this.otherAttributes = otherAttributes;
        }
        public Map<QName, String> getOtherAttributes() {
            return otherAttributes;
        }
    *************************************************************************************/

    @Persistent
    @SoapFieldDefinition(@SoapFieldClass(classDefinition=XsAnnotation.class))
    protected Long xsAnnotationId;
    public void setXsAnnotationId(Long xsAnnotationId) {
        this.xsAnnotationId = xsAnnotationId;
    }
    public Long getXsAnnotationId() {
        return xsAnnotationId;
    }


    @Persistent
    @SoapFieldDefinition(@SoapFieldClass(classDefinition=XsSimpleType.class))
    protected Long xsSimpleTypeId;
    public Long getXsSimpleTypeId() {
        return xsSimpleTypeId;
    }
    public void setXsSimpleTypeId(Long xsSimpleTypeId) {
        this.xsSimpleTypeId = xsSimpleTypeId;
    }
}
